<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>编辑产品详情</title>

		<link type="text/css" href="<%=path%>/manage/css/layout.css"
			rel="stylesheet" />
		<link type="text/css" href="<%=path%>/manage/css/new_style.css"
			rel="stylesheet" />
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/manage/css/Tooltip.css" />
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-1.4.4.min.js"></script>

		<script type="text/javascript"
			src="<%=path%>/manage/js/easyTooltip.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-ui-1.8.11.custom.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.wysiwyg.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/hoverIntent.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/superfish.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/custom.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/My97DatePicker/WdatePicker.js"></script>
		<style type="text/css">
.btn_add {
	background: url(../images/btn_add.jpg) 0 0 no-repeat;
	border: none;
	color: #F00
}
</style>

		<%-- 验证js Start --%>
		<script type="text/javascript" src="<%=path%>/manage/js/Tooltip.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.methods.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.defaults.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/errorTip.js"></script>
		<%@ include file="contentCommon.jspf" %>
		<%@ include file="contentAttach.jspf" %>
	</head>
	<script type="text/javascript">
		var flag = false;
	</script>
	<body>
		<div>
			<p class="sitemap">
				当前位置：应用内容管理 > 产品详情编辑
			</p>
			<h1>
				产品详情编辑
			</h1>
			<div>
				<!-- Tabs -->
				<div id="tabs">
					<ul>
						<li>
							<a href="#tabs-1">产品详情 编辑</a>
						</li>

					</ul>
					<s:form action="/dataBinding/doEditContent.action" name="myForm"
						id="myForm" enctype="multipart/form-data" method="post">

						<s:hidden name="intContentId"></s:hidden>
						<s:hidden name="intCateId"></s:hidden>
						<!-- First tab -->
						<div style="overflow: auto">
							<table cellspacing="0" cellpadding="0" border="0"
								class="fullwidth" style="border: 0" id="contenttable">
								<tr>
									<td width="120">
										基本信息
									</td>
									<td></td>
								</tr>
								<tr>
									<td>
										内容缩略图
									</td>
									<td>
										<s:hidden name="imgWidth"></s:hidden>
										<s:hidden name="imgHeight"></s:hidden>
										<s:hidden name="imgSize"></s:hidden>
										<s:if test="contentTab.varContentImgUrl!=null">
											<img src='<s:property value="contentTab.varContentImgUrl"/>'
												id="titleFile" width="54" height="32">
										</s:if>
										<s:file name="titleFile" cssStyle="margin:0px 5px 5px 20px;"></s:file>
										<%-- 
										（<s:property value="imgWidth"/>*<s:property value="imgHeight" />，超过将等比缩放）
										--%>
									</td>
								</tr>
								<tr>
									<td>
										标题
									</td>
									<td>
										<s:textfield name="contentTab.varContentName"
											cssStyle="width:400px;" cssClass="textbox_border" />
									</td>
								</tr>
								<tr>
									<td>
										描述
									</td>
									<td>
										<s:textarea name="contentTab.varContentDescript"
											cssStyle="width:400px; height:70px; " />
									</td>
								</tr>
								<!-- 视频   videoUrlDto-->
								<tr>
									<td>
										ios下载地址
									</td>
									<td>

										<s:textfield name="downLoadDto.iosUrl"
											cssStyle="width:400px;  " cssClass="textbox_border" />
									</td>
								</tr>
								<tr>
									<td>
										android下载地址
									</td>
									<td>
										<s:textfield name="downLoadDto.downloadUrl"
											cssStyle="width:400px;  " cssClass="textbox_border" />
									</td>
								</tr>
								<tr>
									<td>
										下载显示图片
									</td>
									<td>
										<s:hidden name="downLoadDto.intImgId"></s:hidden>
										<s:if test="downLoadDto.downloadImgUrl!=null">
											<img src="<s:property value="downLoadDto.downloadImgUrl"/>"
												width="50px" height="30px">
										</s:if>
										<input type="file" name="downLoadDto.uploadFile"
											class="textbox_border" /><%-- （宽度:765px,高度等比例缩小）--%>
									</td>
								</tr>
								<!-- 扩展属性 -->
								<%@include file="eAttrs.jspf" %>
								<!--视频 -->
								<tr>
									<td>
										<span style="font-weight:bold">附件：</span>
									</td>
								<tr>
								<tr>
									<td colspan="2">
										<a class="btn_add"
											style="display:inline-block;height:24px;width:100px;padding-left:24px;line-height:24px;background:url(<%=path%>/manage/images/btn_add.jpg) 0 0 no-repeat;cursor:pointer;"
											onClick="show(-1,5)">增加图片</a>
										<a class="btn_add"
											style="display:inline-block;height:24px;width:100px;padding-left:24px;line-height:24px;background:url(<%=path%>/manage/images/btn_add.jpg) 0 0 no-repeat;cursor:pointer;"
											onClick="show(-1,2)">增加音频</a>
										<a class="btn_add"
											style="display:inline-block;height:24px;width:100px;padding-left:24px;line-height:24px;background:url(<%=path%>/manage/images/btn_add.jpg) 0 0 no-repeat;cursor:pointer;"
											onClick="show(-1,3)">增加视频</a>
									</td>
								</tr>
								<%@ include file="contentImg.jspf" %>
							</table>
							<div align="center">
								<input type="button" value="提交" class="button"
									onclick="btnSubmit();">
							</div>
						</div>
						<div style="display:none">
							<input type="text" name="orderchecknumber" />
						</div>
					</s:form>
					<div id="uploadArea"></div>
				</div>
			</div>
		</div>
	</body>
</html>
